package com.pingan.license.interceptor;

import com.pingan.license.authority.LicenseVertify;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @AUTHOR:LIUCHAO;
 * @DATE: 2020/12/2 9:19
 */
@Component
public class LicenseCheck {


    @PostConstruct
    public void init() {
        LicenseVertify vertify = new LicenseVertify("pingan");
        vertify.install(System.getProperty("user.dir"));
        if (!vertify.verify()) {
            Runtime.getRuntime().halt(1);
        }
    }
}